Skip to main content

DeleteImage

Description

call DeleteImage delete a custom image.

Request Method

POST

Request Path

/apsara/route/Ecs/DeleteImage

Request Parameters Common Parameters

NameLocationTypeRequiredSample valueDescription
ForceBODYbooleanNofalseWhether to execute forced deletion. Value range: true: forcibly delete the custom image, ignoring whether the current image is used by other instances. false: normally deletes the custom image. before deleting, check whether the current image is used by other instances. default value: false.
regionIdBODYstringYesNo sample value for this parameter.region id
ImageIdBODYstringYesm-bp67acfmxazb4ph***mirror ID. If the specified custom image does not exist, the request will be ignored.
RegionIdBODYstringYescn-qingdao-env17-d01the region ID of the custom image. You can call the DescribeRegions to view the latest Alibaba Cloud region list.
versionBODYstringNo2016-01-01version of api

Return data

NameTypeSample valueDescription
RequestIDstring1E3D5A1E0-67CA-43DA-24BC-EAF2D5A1E4DCRequest id

Example

Successful Response example

{
"RequestID":"1E3D5A1E0-67CA-43DA-24BC-EAF2D5A1E4DC"
}

Failed Response example

{
"errorSample":
{
"resultCode":-1,
"resultMsg":"system error",
"result":null
}

}

title: DeleteNetworkInterface

DeleteNetworkInterface

Description

call DeleteNetworkInterface to delete an ENI.

Request Method

POST

Request Path

/apsara/route/Ecs/DeleteNetworkInterface

Request Parameters Common Parameters

NameLocationTypeRequiredSample valueDescription
regionIdBODYstringYesNo sample value for this parameter.region id
RegionIdBODYstringYescn-qingdao-env17-d01region ID. You can call the DescribeRegions to view the latest Alibaba Cloud region list.
NetworkInterfaceIdBODYstringYeseni-bp14v2sdd3v8htlnm***the id of the elastic network card.
versionBODYstringNo2016-01-01version of api

Return data

NameTypeSample valueDescription
RequestIDstring1E3D5A1E0-67CA-43DA-24BC-EAF2D5A1E4DCRequest id

Example

Successful Response example

{
"RequestID":"1E3D5A1E0-67CA-43DA-24BC-EAF2D5A1E4DC"
}

Failed Response example

{
"errorSample":
{
"resultCode":-1,
"resultMsg":"system error",
"result":null
}

}